package com.opencv.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author qz.wu
 */
@Api(tags = "TestController测试")
@RestController("/test")
public class TestController {

    @ApiOperation("login api")
    @GetMapping("/")
    public String login() {
        return "Hello login ~";
    }

    @ApiOperation("helloWord Api")
    @GetMapping("/index")
    public String index() {
        return "Hello World ~";
    }

    @ApiOperation("admin Api")
    @GetMapping("/admin/hello")
    public String admin() {
        return "hello admin!";
    }

    @ApiOperation("user Api")
    @GetMapping("/user/hello")
    public String user() {
        return "hello user";
    }
}
